<?php $this->_extends('_layouts/cases_layout'); ?>

<?php $this->_block('title'); ?>应用展示|实际案例|<?php echo h($case->title); $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

<!-- 应用展示详细信息 -->

<div class="case-show">

  <div class="cases-title">
    <img src="<?php echo $_BASE_DIR; ?><?php echo $case->icon_src; ?>" />

    <h1<?php if (!$case->is_approbated): echo ' class="not-approbated"'; endif; ?>>
      <?php echo h($case->title); ?>
      <?php if (!$case->is_approbated): ?><span class="not-approbated">等待审核</span><?php endif; ?>
      <?php if ($case->is_pending_delete): ?><span class="pending-delete">等待删除</span><?php endif; ?>
    </h1>

    <p>
      <?php if (isset($user['id']) && $user['id'] == $case->member_id): ?>
      提交人：<?php echo h($case->owner->username); ?>
      , <a href="<?php echo url('cases/edit', array('id' => $case->id())); ?>" class="oper">修改应用展示</a>
      <?php else: ?>
      提交人：<a href="<?php echo url('cases/index', array('type' => 'member', 'key' => $case->owner->username)); ?>"><?php echo h($case->owner->username); ?></a>
      <?php endif; ?>
    </p>
  </div>

  <div class="cases-contents">
    <ul class="meta clearfix">
	  <li>添加日期：<strong><?php echo date('Y-m-d H:i', $case->created); ?></strong></li>
      <li>点击次数：<strong class="hot"><?php echo $case->clicks_count; ?></strong></li>
      <li>应用网址：<a href="<?php echo h($case->site_url); ?>" target="_blank"><?php echo h($case->site_url); ?></a></li>
    </ul>

    <div class="formatted">
      <?php echo $case->description_formatted; ?>
    </div>

    <hr />

    <h2>屏幕截图</h2>

    <ul class="thumbs clear-fix">

    <?php foreach ($case->pictures as $pic): ?>

      <li>
	    <a href="<?php echo $_BASE_DIR . $pic->pic_src; ?>" title="点击在新窗口查看大图" target="_blank"><img src="<?php echo $_BASE_DIR . $pic->thumb_src; ?>" class="thumb" /></a>
      </li>

    <?php endforeach; ?>

    </ul>

  </div>

</div>

<!-- /应用展示详细信息 -->

<?php $this->_endblock(); ?>


